const express = require('express');
const app = express();
app.get('/liu',(req,res)=>{
    console.log(req.url);
    res.end('考试即将开始');
});
app.post('/jia',(req,res)=>{
    console.log(req.url);
    res.end('考试正在进行');
});
app.post('/ning',(req,res)=>{
    console.log(req.url);
    res.end('请认真考试');
});
app.listen(3000,err=>{
    if (!err) console.log('服务器启动成功');
    else console.log(err);
})